//
//  AddMemberCell.m
//  QRMaster
//
//  Created by lc on 16/5/23.
//  Copyright © 2016年 myApple. All rights reserved.
//

#import "AddMemberCell.h"

@implementation AddMemberCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        [self prepareView];
    }
    return self;
}

-(void)prepareView
{
    _rowLabel = [[UILabel alloc] initWithFrame:CGRectMake(22, 14, 150, 16)];
    _rowLabel.font = [UIFont systemFontOfSize:15];
    _rowLabel.textColor = UIColorFromRGB(0x333333);
    [self.contentView addSubview:_rowLabel];
    
    _selectImg = [[UIImageView alloc] initWithFrame:CGRectMake(UI_SCREEN_WIDTH-38, 13, 22, 18)];
    _selectImg.image = [UIImage imageNamed:@"check_green"];
    _selectImg.hidden = YES;
    [self.contentView addSubview:_selectImg];

}


- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setIsClick:(BOOL)isClick
{
    if (isClick) {
        _rowLabel.textColor = UIColorFromRGB(0x7dc234);
        _selectImg.hidden = NO;
    }else{
        _rowLabel.textColor = UIColorFromRGB(0x333333);
        _selectImg.hidden = YES;
    }
}

//- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
//    [super setSelected:selected animated:animated];
//    if (selected) {
//        _rowLabel.textColor = UIColorFromRGB(0x7dc234);
//        _selectImg.hidden = NO;
//    }else{
//        _rowLabel.textColor = UIColorFromRGB(0x333333);
//        _selectImg.hidden = YES;
//    }
//
//    // Configure the view for the selected state
//}

@end
